package com.liqiye.paymanager.service.payment;

import com.liqiye.paymanager.bean.payment.*;

/**
 * 支付相关的方法（适配各大海外支付平台）
 */
public interface PaymentService {

    /**
     * 创建支付订单
     */
    PaymentResponse createPayment(PaymentRequest request);

    /**
     * 查询订单状态
     */
    PaymentStatusResponse queryPayment(String platformOrderId);

    /**
     * 捕获订单
     */
    CaptureResponse captureOrder(String orderId);

    /**
     * 退款
     */
    RefundResponse refund(RefundRequest request);

    /**
     * 回调处理
     */
    CallbackResponse handleCallback(String payload, String signature);
}
